package com.cloudwise.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;

/**
 * 问题表(Question)表实体类
 *
 * @author
 * @since 2022-1-19 15:30:40
 */
@TableName("tbl_question")
@Data
public class Question extends Model<Question> {

    /**
     * 题编号,value代表数据库主键的名字，type代表主键自增
     */
    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;

    private String question;

    private String optionA;

    private String optionB;

    private String optionC;

    private String optionD;
    //预留字段
    private Integer type;
    //状态
    private Integer status;
    //创建时间
    private Date createTime;
    //创建人
    private String createBy;
    //修改时间
    private Date updateTime;
    //修改人
    private String updateBy;

    private int flag;




    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

